<!-- reportingResults -->
<template>
    <div class="page">
         <!-- 导航栏 -->
        <!-- <div class="navBar">
            <customNavBar :leftTetx="leftTetx" :titleTest="titleTest" :H5="true" @goBack="goBack"></customNavBar>
        </div> -->
        <!-- 导航栏 -->
        <div class="navBar">
            <!-- <div style="text-align: left; padding-left: 13px; margin-top: 30px;" @click="backHome()">
            <img class='contentg' src="../../assets/img/features/closeIcon.png" alt="">
            </div> -->
            <div class='cetjecsty'>
            <span>温馨提示</span> 
            </div>
        </div>
        <!-- 页面内容 -->
        <div class="content">
            <div style="display: flex; justify-content: center">
                <img class='contentg' src="../../assets/img/features/t.png" alt="">
            </div>
            <div class='progressc'>您已退出当前服务流程</div>
            <div class='progressc'>后续可再次打开本链接使用服务</div>

        </div>
    </div>
</template>

<script lang="ts" setup name="reportingResultwxts">
import { useRouter, useRoute } from "vue-router"
import { Toast } from '/@/utils/Message';
import { onMounted } from "vue"
import { reactive, ref } from 'vue'
import customNavBar from "/src/components/NavBar/customNavBar.vue"
import viewReport from "../../assets/img/tast/htt.png"
import {oneTouchCreatTask} from "../../api/auth/addCustome"

const router = useRouter()
const route = useRoute()
const leftTetx = ref("")
const titleTest = ref("生成失败")
let data = reactive({
  ...route.query,
});


const backHome = () => {
    // 获取 User Agent
    var userAgent = navigator.userAgent.toLowerCase();
    // 判断是否在微信中打开
    if (userAgent.indexOf('micromessenger') !== -1) {
        setTimeout(function () {
        //这个可以关闭安卓系统的手机
        document.addEventListener(
            "WeixinJSBridgeReady",
            function () {
            WeixinJSBridge.call("closeWindow");
            },
            false
        );
        //这个可以关闭ios系统的手机
        WeixinJSBridge.call("closeWindow");
        } ,500);
    } else {
        console.log('当前页面不在微信中打开');
        if (userAgent.indexOf("Firefox") != -1 || userAgent.indexOf("Chrome") != -1) {
        window.location.href = "about:blank";
        } else if (userAgent.indexOf('Android') > -1 || userAgent.indexOf('Linux') > -1) {
        window.opener = null; window.open('about:blank', '_self', '').close();
        } else {
        window.opener = null;
        window.open("about:blank", "_self");
        window.close();
        }
    }

}
onMounted(() => {
    sessionStorage.clear();
    window.localStorage.clear()
})
</script>

<!-- less嵌套设置 -->
<style lang="less" scoped>
.contentg{
  width: 271px;
  height: 200px;
  margin: 30px 0 30px 0; 
}
.page {
    background-color: #FFFFFF;
    height: 100vh;
    width: 100vw;
    overflow-x: hidden;
    .cetjecsty {
        margin-top: 30px;
    }
    .content {
        width: 100%;
        padding-top: 90px;
        overflow: hidden;
        .progressc {
            // width: 317px;
            width: 98%;
            // margin-left: 34px;
            margin: 0  auto;
            font-size: 14px;
            color: #222222;
            font-weight: 200;
            // margin-top: 10px;
            // text-align: left;
            letter-spacing: 1.7px;
            span {
                color: #007DFA;
                font-weight: bold;
            }
        }
        .contbottom {
            width: 327px;
            height: 58px;
            font-weight: 500;
            color: #FFFFFF;
            margin-top: 130px;
            margin-left: 23px;
            line-height: 53px;
            text-align: center;
            background: url(../../assets/img/tast/bottom.png);
            background-size: 100% 100%;
            background-repeat: no-repeat;
        }
    }
}
</style>

